package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("/")
public class PageController {

    /**
     * 用户页面
     *
     * @return
     */
    //首页
    @RequestMapping(value = "")
    public String viewWelcome() {
        return "/user/userLogin";
    }

    //用户登录页
    @RequestMapping(value = "/login")
    public String viewUserLogin() {
        return "/user/userLogin";
    }

    //用户内容页
    @RequestMapping(value = "/userMain")
    public String viewUserMain() {
        return "/user/userMain";
    }

    //用户主页
    @RequestMapping(value = "/userIndex")
    public String viewUserIndex() {
        return "/user/userIndex";
    }

    //用户-信息维护
    @RequestMapping(value = "/userEdit")
    public String editor() {
        return "/user/userEdit";
    }

    //用户-修改密码
    @RequestMapping(value = "/userPwd")
    public String pwd() {
        return "/user/userPwd";
    }

    //用户-贷款申请
    @RequestMapping(value = "/userDoApply")
    public String applyStep1() {
        return "/apply/userApplyEdit";
    }

    //用户-贷款申请
    @RequestMapping(value = "/contract")
    public String contract() {
        return "/user/contract";
    }

    //用户-上传头像
    @RequestMapping(value = "/upload")
    public String upload() {
        return "/user/upload";
    }

    /**
     * 管理员页面
     *
     * @return
     */
    //管理员登录页
    @RequestMapping(value = "/admin")
    public String viewAdminLogin() {
        return "/admin/adminLogin";
    }

    //用户主页
    @RequestMapping(value = "/adminIndex")
    public String viewAdminIndex() {
        return "/admin/adminIndex";
    }

    //管理员内容页
    @RequestMapping(value = "/adminMain")
    public String viewAdminMain() {
        return "/admin/adminMain";
    }

    //添加用户页面
    @RequestMapping(value = "/adminAddUser")
    public String addUser() {
        return "/admin/adminUserAdd";
    }
}




